<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/12 0012
 * Time: 22:23
 */

namespace App\Http\Controllers\Transformers;


use App\Model\Classify;
use App\Model\News;
use League\Fractal\TransformerAbstract;

class ClassifyTransformer extends TransformerAbstract
{
public function transform(Classify $classify){
    return [
        'id'=>$classify->id,
        'name'=>$classify->name,
    ];
}
}
